import request from '@/utils/request'

// 查询总流水合计列表
export function listFlowTotal(query) {
  return request({
    url: '/work/flowTotal/list',
    method: 'get',
    params: query
  })
}

// 查询总流水合计详细
export function getFlowTotal(ids) {
  return request({
    url: '/work/flowTotal/' + ids,
    method: 'get'
  })
}

// 新增总流水合计
export function addFlowTotal(data) {
  return request({
    url: '/work/flowTotal',
    method: 'post',
    data: data
  })
}

// 修改总流水合计
export function updateFlowTotal(data) {
  return request({
    url: '/work/flowTotal',
    method: 'put',
    data: data
  })
}

// 删除总流水合计
export function delFlowTotal(ids) {
  return request({
    url: '/work/flowTotal/' + ids,
    method: 'delete'
  })
}
